
//
//  KMineRootViewController.m
//  DrugPin
//
//  Created by guohe on 2018/9/8.
//  Copyright © 2018年 outang. All rights reserved.
//

#import "KMineRootViewController.h"

@interface KMineRootViewController ()

@end

@implementation KMineRootViewController


-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
    [self setUpUI];
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    self.navigationController.navigationBarHidden = NO;
}


- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = KRandomColor;
    [self showCustomNavigationRightButtonWithimage:[UIImage imageNamed:@"icon_erweima"] hightlightImage:[UIImage imageNamed:@"icon_erweima"] image2:[UIImage imageNamed:@"icon_set"]  hightlightImage2:[UIImage imageNamed:@"icon_set"]];
    [self setUpUI];
}

-(void)setUpUI{
    
    BaseWebViewController *sub = [[BaseWebViewController alloc] init];
    sub.urlStr = [NSString stringWithFormat:@"%@user/index?_code=%@",ServerAddressURLAPI,[KUserLoginModel shareInstance].Code ? [KUserLoginModel shareInstance].Code : [KWXLoginUserListModel shareInstance].Code];
    sub.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:sub animated:YES];
    
    
}

@end
